<div class="auto-height-box">
<div class="ibox-content">
    <form class="form-horizontal" method="post" action="{:url('TenNotify/edit')}">
        <input type="hidden" name="id" value="{$info.id|default='0'}">
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('标题')}</label>
            <div class="col-sm-10">
                <input name="name" class="form-control" type="text" placeholder="{:lang('请输入')}{:lang('标题')}"
                       value="{$info.name|default=''}"/>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('接收者')}</label>
            <div class="col-sm-10">
                <select name="rece_type" class="form-control">
                    <option value="0" {notempty name="info['rece_type']" } {if condition="$info['rece_type'] eq 0 " } selected="selected" {/if} {/notempty}>{:lang('所有人员')}</option>
                    <option value="1" {notempty name="info['rece_type']" } {if condition="$info['rece_type'] eq 1 " } selected="selected" {/if} {/notempty}>{:lang('指定人员')}</option>
                </select>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('指定人员')}</label>
            <div class="col-sm-10">

                <div class="input-group">
                    <input type="hidden" name="rece_user_ids" value="{$info.rece_user_ids|default=''}">
                    <input type="text" name="rece_user_names" id="rece_user_name" class="form-control"  placeholder="{:lang('选择人员')}" readonly value="{$info.rece_user_names|default=''}">
                    <span class="input-group-btn">
                        <button type="button" class="btn btn-default ajax-open" data-calback="javascript:void(0);"
                                data-url="{:url('plat/TenUser/lookup',array('input_ids'=>'rece_user_ids','input_text'=>'rece_user_names'))}">{:lang('选择人员')} </button>
                    </span>
                </div>
                <span class="help-block m-b-none"></span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('通知内容')}</label>
            <div class="col-sm-10">
                <textarea name="content" class="form-control" placeholder="{:lang('通知内容')}" rows="5">{$info.content|default=''}</textarea>
                <span class="help-block m-b-none"></span>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8">
                {include file="admin@layout/save_btn"}
            </div>
        </div>
    </form>
</div>
</div>